extends Reference
class_name Individuum

var score = -1

var gentle_divisor = 50

var types = []

func mutate(gentle = false):
	var ret = load("res://Individuum.gd").new()

	if gentle:
		print("mutating GENTLY")

	for i in range(ret.types.size()):
		ret.types[i] = types[i].mutate(1.0 if !gentle else gentle_divisor)

	#print("mutated, new type count is ", ret.types.size())
	return ret

func _init():
	for i in range(CellType.types.size()):
		var ct = CellType.new()
		types.append(ct)
		ct.type_index = i
